package com.linq.cool.beauty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linq.cool.beauty.domain.BeautyProduct;

import java.util.List;

/**
 * @Author: yqlin
 * @Date: 2021/2/5 17:25
 * @Description:
 * @Version: 1.0.0
 */

public interface BeautyProductMapper extends BaseMapper<BeautyProduct> {
    /**
     * 获取新品
     *
     * @return
     */
    List<BeautyProduct> listByNewStatus();

    /**
     * 获取推荐商品
     *
     * @return
     */
    List<BeautyProduct> listByRecommendStatus();

    /**
     * 查询所在类目销量最高的6条数据
     *
     * @param product
     *
     * @return
     */
    List<BeautyProduct> listBySale(BeautyProduct product);
}